<?php

/**
 * Engine One API creator
 *
 * @copyright oneDot only <we@onedotonly.be>
 * @author Koen Betsens <koen@onedotonly.be>
 * @package Engine
 * @license GNU Lesser General Public License
 */

// initiate engine
require_once( "engine/www/combustion.php" );

// set globals
global $DB;
$Modcon = new MOD_CONSTRUCT();
$Cal 	= new CALENDAR();


// check for apikey
if( !$DB->smartq( $_GET[ "id" ] ) || empty( $_GET[ "id" ] ))
	die( 'no id defined' );
	
// construct mod and output!
$Module = $Modcon->call( $DB->smartq( $_GET[ "id" ] ));
echo $Module->api();


